home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / cvs-1.8 / cvs-1 / cvs-1.8.1 / macintosh / config.h next >
Encoding:
C/C++ Source or Header  |  1996-05-06  |  3.3 KB  |  123 lines

  1. /*
  2.  * config.h --- configuration file for MacOS
  3.  * Handbuilt for MetroWerks CodeWarrier 7 and GUSI 1.6.4
  4.  *
  5.  * MDLadwig <mike@twinpeaks.prc.com> --- Nov 1995
  6.  */
  7.  
  8. /* This file lives in the CVSHOME/macos directory */
  9.  
  10. #include <GUSI.h>
  11. #include <compat.h>
  12. #include <sys/errno.h>
  13.  
  14. /* Define if files are crlf terminated.  */
  15. #define LINES_CRLF_TERMINATED 1
  16.  
  17. /* Define if you support file names longer than 14 characters.  */
  18. #define HAVE_LONG_FILE_NAMES 1
  19.  
  20. /* Define if utime(file, NULL) sets file's timestamp to the present.  */
  21. #define HAVE_UTIME_NULL 1
  22.  
  23. /* Define as the return type of signal handlers (int or void).  */
  24. #define RETSIGTYPE void
  25.  
  26. /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
  27. #define STAT_MACROS_BROKEN 1
  28.  
  29. /* Define if you have the ANSI C header files.  */
  30. #define STDC_HEADERS 1
  31.  
  32. /* Define if you want CVS to be able to be a remote repository client.  */
  33. #define CLIENT_SUPPORT 1
  34.  
  35. /* The number of bytes in a int.  */
  36. #define SIZEOF_INT 4
  37.  
  38. /* The number of bytes in a long.  */
  39. #define SIZEOF_LONG 4
  40.  
  41. /* Define if you have the connect function.  */
  42. #define HAVE_CONNECT
  43.  
  44. /* Define if you have the ftime function.  */
  45. #define HAVE_FTIME 1
  46.  
  47. /* Define if you have the ftruncate function.  */
  48. #undef HAVE_FTRUNCATE
  49.  
  50. /* Define if you have the setvbuf function.  */
  51. #define HAVE_SETVBUF 1
  52.  
  53. /* Define if you have the vprintf function.  */
  54. #define HAVE_VPRINTF 1
  55.  
  56. /* Define if you have the <dirent.h> header file.  */
  57. #define HAVE_DIRENT_H 1
  58.  
  59. /* Define if you have the <fcntl.h> header file.  */
  60. #define HAVE_FCNTL_H 1
  61.  
  62. /* Define if you have the <memory.h> header file.  */
  63. #define HAVE_MEMORY_H 1
  64.  
  65. /* Define if you have the <string.h> header file.  */
  66. #define HAVE_STRING_H 1
  67.  
  68. /* Define if you have the <unistd.h> header file.  */
  69. #define HAVE_UNISTD_H 1
  70.  
  71. /* Define if you have the <utime.h> header file.  */
  72. #define HAVE_UTIME_H 1
  73.  
  74. /* GUSI filesystem stuff doesn't take the last parameter (permissions).  */
  75. #define CVS_MKDIR macos_mkdir
  76. #define CVS_OPEN macos_open
  77. #define CVS_CREAT macos_creat
  78. #define CVS_FOPEN macos_fopen
  79. #define CVS_CHDIR macos_chdir
  80. #define CVS_ACCESS macos_access
  81. #define CVS_OPENDIR macos_opendir
  82. #define CVS_STAT macos_stat
  83. #define CVS_RENAME macos_rename
  84. #define CVS_UNLINK macos_unlink
  85. #define CVS_CHMOD macos_chmod
  86.  
  87. extern int macos_rename (const char *, const char *);
  88. extern int macos_stat (const char *, struct stat *);
  89. extern DIR * macos_opendir (const char *);
  90. extern int macos_access(const char *, int);
  91. extern int macos_chdir( const char *path );
  92. extern FILE * macos_fopen( const char *path, const char *mode );
  93. extern int macos_creat( const char *path, mode_t mode );
  94. extern int macos_open( const char *path, int oflag, ... );
  95. extern int macos_mkdir( const char *path, int oflag );
  96. extern int macos_unlink (const char *);
  97. extern int macos_chmod( const char *path, mode_t mode );
  98.  
  99. /* Kludges from pwd.c  */
  100. extern struct passwd *getpwnam (char *name);
  101. extern pid_t getpid (void);
  102.  
  103. /* We have prototypes.  */
  104. #define USE_PROTOTYPES 1
  105.  
  106. /* Compare filenames */
  107. #define fncmp strcmp
  108.  
  109. /* Don't use rsh */
  110. #define RSH_NOT_TRANSPARENT 1
  111.  
  112. #define START_SERVER macos_start_server
  113. #define SHUTDOWN_SERVER macos_shutdown_server
  114.  
  115. extern void macos_start_server (int *tofd, int *fromfd,
  116.                   char *client_user,
  117.                   char *server_user,
  118.                   char *server_host,
  119.                   char *server_cvsroot);
  120. extern void macos_shutdown_server (int to);
  121.  
  122.  
  123.